//
//  HRTouchManager.h
//  Pods
//
//  Created by duanhuifen on 2017/7/24.
//
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, HRSettingItem) {
    HRSettingsHome,             //设置
    HRSettingsAirPlane,         //飞行模式
    HRSettingsWifi,             //Wifi
    HRSettingsBluetooth,        //蓝牙
    HRSettingsHotSpot,          //个人热点
    HRSettingsNotification,     //通知
    HRSettingsGeneral,          //通用
    HRSettingsGeneralAbout,     //通用／关于本机
    HRSettingsLocationService,  //隐私／定位服务
    HRSettingsPhone,            //电话
};

typedef NS_ENUM(NSUInteger, HRFunctionItem) {
    HRFunctionItemCamera,       //相机
    HRFunctionItemPhotoLibrary, //相册
};



@class HRTouchManager;

@protocol HRTouchManagerDataSource <NSObject>

@required
//多少个 好像没有用
- (NSInteger)hr_numberOfItemsInTouch:(HRTouchManager *)manager;

//名字数组
- (NSArray *)hr_itemTitlesForInTouch:(HRTouchManager *)manager;

@optional

//自定义图片数组
- (NSArray *)hr_itemIconsForCustomInTouch:(HRTouchManager *)manager;

//自定义图片数组
- (NSArray *)hr_itemIconsForSystemType:(UIApplicationShortcutIconType)iconType InTouch:(HRTouchManager *)manager;



@end

@protocol HRTouchManagerDelegate <NSObject>

@optional
//点击每一个的事件
- (void)manager:(HRTouchManager *)manager hr_didSelectItemRowAtIndex:(NSInteger)index;

@end

@interface HRTouchManager : NSObject

@property (nonatomic,weak) id<HRTouchManagerDataSource> dataSource;

@property (nonatomic,weak) id<HRTouchManagerDelegate> delegate;


- (instancetype)initWithDataSource:(id<HRTouchManagerDataSource>)dataSource andDelegate:(id<HRTouchManagerDelegate>)delegate;

- (void)clickWithShortcutItem:(UIApplicationShortcutItem *)shortcutItem;

//打开常用系统设置
- (void)openSettingItem:(HRSettingItem)item;

//打开系统功能
- (void)openSystemFunctionItem:(HRFunctionItem)funcItem;

//问题
//1.如果带有index 模仿tableview该怎么使用
//2.好像完全按照tableview 写没有必要




@end
